package checkers.client.run;

import java.awt.Container;
import java.awt.TextField;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

public class RegistrationForm {
	
	private JFrame regFrame = new JFrame("Registration");
	private Container regCont = regFrame.getContentPane();
	
	public void paintFrame() {
		regFrame.setSize(300, 300);
		regFrame.addWindowListener(new WindowAdapter() {
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});
		TextField text = new TextField();
		text.setLocation(10, 10);
		regCont.add(text);
		regFrame.setVisible(true);
	}
	

}
